/**
 * Created by 程哲振 on 2016/2/25 0025 下午 03:52.
 */
define(['jquery','frozen'], function ($,frozen) {
    function beforeSendLoading(XMLHttpRequest,status){
       // $.showPreloader()
        XMLHttpRequest.setRequestHeader('DeviceID', DeviceID);
        XMLHttpRequest.setRequestHeader('DeviceType', DeviceType);
        XMLHttpRequest.setRequestHeader('Authorization', tokens);
        XMLHttpRequest.setRequestHeader('SerialNO', new Date().getTime());
        XMLHttpRequest.setRequestHeader('Content-Type', 'application/json');
        loading=$.loading({
            content:'加载中...',
        });

    }

    return beforeSendLoading;
});